{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>自动回复</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	{include file="reply/top"}
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-6">
					<div class="input-group">
						<a href="{:url('add')}" class="btn btn-primary btn-outline">添加关键词</a>
					</div>
				</div>
			</div>
		</div>
		<div class="hr-line-dashed"></div>
		<div class="example-wrap">
			<div class="example">
				<form method="post" action="{:url('index')}">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th width="50">
									<input type="checkbox" class="check-all">
								</th>
								<th>关键词</th>
								<th>回复类型</th>
								<th>回复内容</th>
								<th>素材ID</th>
								<th>素材</th>								
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{volist name="list" id='vo'}
							<tr>
								<td class="text-center">
									<input type="checkbox" name="ids[]" value="{$vo.id}">
								</td>
								<td class="text-center">{$vo.key}</td>
								<td class="text-center">{$vo.type}</td>
								<td>{$vo.content}</td>
								<td class="text-center">{$vo.image_id}</td>
								<td><img src="{$vo.thumb}" width="50px"/></td>
								<td class="text-center">
									<a href="{:url('edit',['id'=>$vo.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
										{if condition="$vo.id neq 1"}
									<a href="{:url('delete',['id'=>$vo.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-paste"></i> 删除</a>
										{/if}
								</td>
							</tr>
							{/volist}
						</tbody>
					</table>
				</form>
				{$list->render()}
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script>
	$("#li-bar-detail").addClass("active");
</script>
{/block}